package ro.ubbcluj.cs.bs.api.assembler;

import ro.ubbcluj.cs.bs.backend.model.BaseEntity;
import ro.ubbcluj.cs.bs.common.dto.DataTransferObject;

import javax.ejb.Local;

/**
 * Created by Levente on 2014.05.21..
 */
@Local
public interface Assembler<M extends BaseEntity, D extends DataTransferObject> {
    M createModel();

    D createDto();

    D modelToDto(M model);

    M dtoToModel(D dto);
}
